home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Electronic Messages / USEnet Digests / USEnet Vol. 4 / USEnet 4.44 < prev    next >
Encoding:
Text File  |  1988-06-15  |  31.0 KB  |  781 lines  |  [TEXT/ttxt]

  1. 19-Apr-88 17:34:47-PDT,32489;000000000000
  2. Return-Path: <usenet-mac-request@RELAY.CS.NET>
  3. Received: from RELAY.CS.NET by SUMEX-AIM.Stanford.EDU with TCP; Tue, 19 Apr 88 17:32:37 PDT
  4. Received: from relay2.cs.net by RELAY.CS.NET id aa13343; 19 Apr 88 17:37 EDT
  5. Received: from relay.cs.net by RELAY.CS.NET id aa24127; 19 Apr 88 17:30 EDT
  6. Received: from sdr.slb.com by RELAY.CS.NET id ae24118; 19 Apr 88 17:25 EDT
  7. Date: Tue, 19 Apr 88 17:17 EDT
  8. From: Jeffrey Shulman <SHULMAN@sdr.slb.com>
  9. Subject: Usenet Mac Digest V4 #44
  10. To: usenet-mac@RELAY.CS.NET, PIERCE%HDS@sdr.slb.com
  11. X-VMS-To: in%"usenet-mac@relay.cs.net",in%"PIERCE%HDS@SDR.SLB.COM"
  12.  
  13. Date: Tue 19 Apr 88 17:17:44-GMT
  14. From: Jeff Shulman <SHULMAN@SDR>
  15. Subject: Usenet Mac Digest V4 #44
  16. To: Usenet-List: ;
  17. Message-ID: <577473464.0.SHULMAN@SDR>
  18. Mail-System-Version: <VAX-MM(218)+TOPSLIB(129)@SDR>
  19.  
  20. Usenet Mac Digest     Friday, April 1, 1988          Volume 4 : Issue 44 
  21.  
  22. Today's Topics:
  23.      Re: Mac to pic/troff Conversion
  24.      Electronic circuit design and simulation
  25.      MPW Pascal Suggestion
  26.      Re: CMS Pro80II/i vs. Pro102k-II/i Disks
  27.      Re: MPW Pascal Suggestion
  28.      Dove SCSI + CMS: do they mix?
  29.      CE Vaccine
  30.      Re: TI microExplorer (Mac II coprocessor) ...
  31.      Re: Info on Concertware + 4.0
  32.      Re: How to quit MF?(was Re: Quitting the Finder under MF)
  33.      Additional Serial Ports for MAC II (2 messages)
  34.      Proposal for enhancements to the Macintosh System (Repost!)
  35.      DiskTools Plus comments
  36.      Help List Manager
  37.      Re: Polygon question
  38.  
  39. ---------------------------------------------------------------------- 
  40.  
  41. From: crowe@whuts.UUCP (CROWE)
  42. Subject: Re: Mac to pic/troff Conversion
  43. Date: 25 Mar 88 01:57:44 GMT
  44. Organization: AT&T Bell Laboratories
  45.  
  46. This came across the MacGroup mailing list and I saved it.  Sounds
  47. pretty interesting. 
  48.  
  49. ****************
  50.  
  51. Another way, which I've just recently started using, is a new print
  52. driver called MDPIC from AVATAR (5606 Northumberland, Pittsburgh, PA
  53. 15217 (412) 422-9509).  This print driver actually doesn't print, it
  54. just creates a file. But the trick is that the file is in PIC format, a
  55. format readable by the pic preprocessor for troff on UNIX.  PIC will
  56. draw pictures on laser printers (or tektronix terminals).  MDPIC has
  57. it's limits, like not translatting bit mapped images, but what it does
  58. do it does very well.  Even at $300, I recommend it.
  59.  
  60. ****************
  61.  
  62.  
  63. Hope this helps.
  64. -- 
  65. Donald Crowe
  66. whuts!crowe
  67.  
  68.  
  69. ------------------------------
  70.  
  71. From: mikael@sm.luth.se (Mikael Eriksson)
  72. Subject: Electronic circuit design and simulation
  73. Date: 24 Mar 88 13:38:57 GMT
  74. Organization: University of Lulea, Sweden
  75.  
  76.  
  77.   Does anybody has any experience of programs for design and simulation
  78. of electronic (both analog and digital) circuits on macintosh. I would
  79. like to know about such programs and how good they are.
  80.  
  81.   Other things I want the program to do is:
  82.  
  83.     - Save subcircuits.
  84.     - It should be possible to design board layout.
  85.     - Work on Mac II (This is a must).
  86.  
  87.  
  88.  Please answer by mail, I will summarize to the net if there is
  89.  any responce.
  90.  
  91.   -- mikael
  92. -- 
  93. Mikael Eriksson  (mikael@sm.luth.se)  or  ...enea!sm.luth.se!mikael
  94. .........    From the US         ..!uunet!enea!sm.luth.se!mikael
  95. A value is just a bit pattern and its type is whatever the 
  96. programmer wants it to be.
  97.  
  98.  
  99. ------------------------------
  100.  
  101. From: rs4u+@andrew.cmu.edu (Richard Siegel)
  102. Subject: MPW Pascal Suggestion
  103. Date: 25 Mar 88 04:53:23 GMT
  104. Organization: Carnegie Mellon University
  105.  
  106.  
  107. I've been experimenting with porting a moderately large (500K source,
  108. 100K code + 80K resources) application from Lightspeed Pascal to MPW
  109. Pascal. This isn't because of any inherent faults in Lightspeed Pascal -
  110. it's just so that I can generate a test version of my program that is
  111. compiled for use on 68881-equipped Macs.
  112.  
  113. The port went fairly smoothly, but I was amazed at how long a typical
  114. build took - to rebuild the whole program from scratch took about 45
  115. minutes in MPW; this is a task that Lightspeed Pascal does in 15
  116. minutes, including build time to write the completed application to
  117. disk.
  118.  
  119. At any rate, I noticed that a considerable amount of compilation time is
  120. taken sucking the source files for units in a USES clause from disk, and
  121. the following occurred to me: Suppose, if after a successful
  122. compilation, the compiler were to write a .Dump file to disk? The .Dump
  123. file would contain the symbol tables (just the same as dump files
  124. created by the $LOAD directive), but upon looking for this unit in the
  125. future, the compiler would first look for the .Dump file, and if it's
  126. found, use it instead of textually including the unit.
  127.  
  128. Is there anything wrong with this?
  129.  
  130. Of course, the compiler's *still* dog-slow... :-)
  131.  
  132.     -R.
  133.  
  134.  
  135. ------------------------------
  136.  
  137. From: dlw@hpsmtc1.HP.COM (David Williams)
  138. Subject: Re: CMS Pro80II/i vs. Pro102k-II/i Disks
  139. Date: 24 Mar 88 17:38:40 GMT
  140. Organization: Hewlett Packard, Cupertino
  141.  
  142. Well my Jasmine I90 is a nice fast drive, but there is an obnoxious
  143. whine that periodically starts up during operation. Seems to be related
  144. to vibration of the drive itself. I have taken to shoving wads of paper
  145. under the connector edge (point of connection at the drive)that runs
  146. from the drive to the SCSI stuff on the motherboard to try and shut it
  147. up but find that it only helps for a short while.
  148. -- 
  149. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  150. David L. Williams   | Hewlett Packard  MS:47LR  | S/W Engineer
  151. dlw@hpsmtc1.HP.COM  | 19447 Pruneridge Ave      | S/W Development Tech Lab
  152. ...!hplabs!hpda!dlw | Cupertino, Ca 95014       | DCE User Interface Project
  153. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  154.  
  155.  
  156. ------------------------------
  157.  
  158. From: lsr@Apple.COM (Larry Rosenstein)
  159. Subject: Re: MPW Pascal Suggestion
  160. Date: 25 Mar 88 21:25:50 GMT
  161. Organization: Advanced Technology Group, Apple Computer
  162.  
  163. The $LOAD mechanism does avoid rereading the interfaces.  If the $LOAD
  164. file exists, it is read instead of the textual interfaces, otherwise the
  165. text files are read and the $LOAD file is created.
  166.  
  167. The main problem with $LOAD file is that you have to use a $LOAD file in
  168. the same context in each compilation.  The information in the $LOAD file
  169. depends on the units it includes as well as the units preceeding it in
  170. the USES statement.  (Some of these issue will be addressed in MPW 3.0,
  171. and this whole mechanism will be much more automatic and streamlined.)
  172.  
  173. Using $LOAD speeds up the compilation significantly, although it still
  174. is much slower than LSP.
  175.  
  176. -- 
  177.          Larry Rosenstein,  Object Specialist
  178.  Apple Computer, Inc.  20525 Mariani Ave, MS 32E  Cupertino, CA 95014
  179.         AppleLink:Rosenstein1    domain:lsr@Apple.COM
  180.         UUCP:{sun,voder,nsc,decwrl}!apple!lsr
  181.  
  182.  
  183. ------------------------------
  184.  
  185. From: nagel@ics.uci.edu (Mark Nagel)
  186. Subject: Dove SCSI + CMS: do they mix?
  187. Date: 25 Mar 88 22:59:17 GMT
  188. Organization: Dept. of ICS, Univ. of Calif., Irvine
  189.  
  190. Has anyone ever successfully used Dove's SCSI upgrade for the 512e with
  191. any CMS hard drive (specifically the SD60)?  I hooked mine up with the
  192. terminator still connected and the drive wouldn't work (Mac worked fine,
  193. though).  I called Dove and they were very helpful -- they told me to
  194. clip the terminators.  Well, that didn't work.  Then they told me to
  195. solder a jumper.  I did.  It still didn't work.  Then they tell me I
  196. wasn't supposed to cut the terminator at all!  So, now it is being
  197. exchanged at MacConnection (out of stock, so I now have to wait 2 *more*
  198. weeks).  I tested the drive on a Plus and it works fine, so it must be
  199. the SCSI port.  When I called CMS originally, they said that Dove's port
  200. doesn't work well with their drives.  This was disturbing, since I never
  201. heard about any such problem in any ads or anywhere else. Has anybody
  202. used Dove's SCSI with a CMS drive?  Did I just get a bad SCSI board? 
  203. Can anyone refer me to another upgrade (that will work with my Dove 2M
  204. memory upgrade) in case the next board doesn't work?  Please respond via
  205. e-mail and I will summarize to the net if I get enough  responses. 
  206. Thanks in advance!
  207.  
  208. Mark D. Nagel         Department of Information and Computer Science, UC
  209. Irvine
  210.                       nagel@ics.uci.edu  (ARPA)
  211.               {sdcsvax|ucbvax}!ucivax!nagel (UUCP)
  212.  
  213.  
  214. ------------------------------
  215.  
  216. From: paulm@nikhefk.UUCP (Paul Molenaar)
  217. Subject: CE Vaccine
  218. Date: 25 Mar 88 15:32:15 GMT
  219. Organization: National Institute for Nuclear Physics; Netherlands
  220.  
  221. A few minutes ago I suffered a system crash, probably due to Vaccine,
  222. the anti-viral INIT/CDEV by CE Software.
  223.  
  224. What happened:
  225.  
  226. I tried to install a DA on a system 'protected' by the Vaccine program.
  227. The moment F/DA Mover tried to install the resources, the Vaccine
  228. program started beeping, warning me about possible virus-intrusions.
  229.  
  230. As the cursor was set to the 'spinning watch' symbol, I couldn't
  231. position the mousepointer accurately at the mini-OK button in the
  232. menubar and probably clicked 'Cancel'. F/DA Mover generated an error
  233. message and stopped. As of that moment my System file was garbled.
  234.  
  235. What have we learned from this:
  236.  
  237. 1) Don't use 'Expert Mode' in Vaccine CDEV (causing all warnings to be
  238. in small icons)
  239.  
  240. 2) Disable the Vaccine before using F/DA Mover.
  241. -- 
  242.         Paul Molenaar
  243.  
  244.     "Just checking the walls"
  245.         - Basil Fawlty -
  246.  
  247.  
  248. ------------------------------
  249.  
  250. From: striepe@Apple.COM (Harald Striepe)
  251. Subject: Re: TI microExplorer (Mac II coprocessor) ...
  252. Date: 25 Mar 88 23:58:22 GMT
  253. Organization: Apple Computer Inc, Cupertino, CA
  254.  
  255.  
  256. In article <1180@kodak.UUCP> luciw@kodak.UUCP (bill luciw) writes:
  257. >Well, our KBS Lab is ordering a microExplorer, the coprocessor for the Mac II.
  258.  
  259. >1) What impact (if any) does the alledged lack of "true" DMA have on the
  260. >paging performance of the microExplorer?
  261. I do not have exact figures on this, but overall performance is 50% + of
  262. TI's Explorer II; contributors to this differential are reduced clock
  263. speed of the CPU to reduce power consumption, different memory
  264. organization (cache), and disk performance. However, it is nice to have
  265. a single file system rather than dealing with multiple partitions.
  266.  
  267. >2) Is TI's implementation of RPC available to other applications (such as those
  268. >developed under MPW)?
  269. Texas Instruments is publishing the RPC spec.
  270.  
  271. >3) How well integrated is the microExplorer into the rest of the Mac
  272. >environment - (cut, copy, paste, print on an AppleTalk printer) ?
  273. The microExplorer uses the Apple peripheral devices. Although the user
  274. interface integration is not yet complete (you are running an Explorer
  275. window system in one or more Macintosh windows under MultiFinder), TI is
  276. working agressively on deeper integration.
  277.  
  278. >4) Can you install the "load bands" on third party disks (SuperMac 150) or do
  279. >they need to remain on the Apple hard disk (the load bands are supposed to be
  280. >normal, finder accessible files)?
  281. Although we have not tried this, there should be no reason why this
  282. should not work (a Macintosh volume is a Macintosh volume).
  283.  
  284. >5) How much of a hassle is it to port applications over to the little beastie
  285. >from a normal Explorer (what about ART, KEE, SIMKIT, etc.)?
  286. Some vendors have installed their application in less than a day.
  287. Inference, IntelliCorp and Carnegie Group all announced support of the
  288. microExplorer.
  289.  
  290. >6) Do any benchmarks (ala Gabriel) exist for this machine?
  291. You might want to contact TI, they ran a whole suite. Unfortunately, I
  292. do not have the details.
  293.  
  294. >7) How about ToolBox access from the Lisp Environment? (or am I dreaming?)
  295. Not available in the first release, but a kit is planned. Since RPC is
  296. public, you would have to "roll your own" in the meantime. Another
  297. approach would be to use Coral's Allegro CL on the Macintosh side,
  298. implement the RPC, and...
  299.  
  300. >Thankyou in advance for all your comments and I will post our experiences
  301. >(good or bad, of course) as they develop ...
  302. Although the microExplorer is supported by TI, we all would be
  303. interested in hearing about your experiences, and definitely would be
  304. willing to help you reach the right people, should you run into
  305. unforeseen problems in getting help.
  306.  
  307. -- 
  308. Harald Striepe
  309. Business Development Manager, Artificial Intelligence
  310. Apple Computer, Inc.
  311. email: striepe@APPLE.COM       AppleLink: STRIEPE2
  312.  
  313.  
  314. ------------------------------
  315.  
  316. From: mls@whutt.UUCP (SIEMON)
  317. Subject: Re: Info on Concertware + 4.0
  318. Date: 25 Mar 88 21:17:50 GMT
  319. Organization: AT&T Bell Laboratories
  320.  
  321. In article <10067@steinmetz.steinmetz.ge.com>, hallett@hamlet.steinmetz
  322. (Jeff A. Hallett) writes:  [questions on ConcertWare]
  323. >   1.  I am primarily interested in being able to enter music and have the
  324. > program play it back.  Does it do this?
  325.  
  326.     Yes; entering is a bit kludgy (in several variant modes) but entirely
  327.     doable (if you can read a line of music -- i.e., you don't need to
  328.     be able to handle scoring/transposition yourself)
  329. >   2.  Is there someway I can have it play a specific line?  Suppose I have
  330. > some SATB piece entered.  Is there someway I could have it play tenor only?
  331. > (even if I have to enter it a certain way...)
  332.  
  333.     Yes; in the non-MIDI version it plays any combination of up to 4 lines;
  334.     the MIDI version allows 8 (which may or may not sound depending on your
  335.     MIDI output device).  You set tempo, volume and voices from the main
  336.     window.  They have an "instrument library" purporting to mimic various
  337.     standard instruments -- and you can modify their attempts (that's fun).
  338. >   3.  If I got the plain version, no MIDI, what would be involved in
  339. > upgrading to the MIDI version?  What hardware do you need to take
  340. > advantage of the MIDI capabilities?
  341.     I'm not sure what the upgrade possibilities are [anyone else?]; it
  342. makes sense to get the full +MIDI package to begin with (try one of the
  343. mail order houses).  Even an el cheapo ($200 mail order) CZ-101 has MUCH
  344. better sound quality than you can get out of your MAC (& I'm talking MAC
  345. II, here). Besides a synthesizer, you need a MIDI interface.  It plugs
  346. into one of your serial ports and is then cabled to the synthesizer. 
  347. There are several MIDI interface boxes on the market, including a new
  348. one from Apple which runs about $95, I think.  Several mail order houses
  349. carry the Passport interface for about this same amount (& it comes with
  350. MIDI cables, which you'll need; I don't know if Apple's includes
  351. cabling.)  With the MIDI version of Concert- Ware you can enter stuff
  352. direct from a synthesizer keyboard -- at least if you are better at
  353. playing to a metronome than I am; else you are reduced to step-time
  354. entry; i.e. note-by-note -- it's still somewhat faster than from the
  355. mouse/keyboard.
  356.  
  357.     Main complaint about ConcertWare: it only haphazardly follows the Mac
  358. interface (e.g., no command-Q to exit!) and is Multifinder hostile. A
  359. good cheap way to get reasonable play/record/print music capabilities,
  360. without paying the arm+leg the better systems require.  Also, not copy
  361. protected. 
  362. -- 
  363. Michael Siemon
  364. contracted to AT&T Bell Laboratories
  365. ihnp4!mhuxu!mls
  366. [ANSI] standard disclaimer
  367.  
  368.  
  369. ------------------------------
  370.  
  371. From: buzz@phoenix.Princeton.EDU (Mahboud Zabetian)
  372. Subject: Re: How to quit MF?(was Re: Quitting the Finder under MF)
  373. Date: 26 Mar 88 10:03:08 GMT
  374. Organization: Advanced Technology, Princeton University
  375.  
  376. In article <7785@apple.Apple.Com> goldman@apple.UUCP (Phil Goldman)
  377. writes:
  378. >This was our thinking.  Was it unreasonable?  System software (including MF)
  379. >is released every 6 months so it is always possible to add/change features.
  380. >Are there other reasons for allowing MF to quit that I omitted?
  381. >
  382. >-Phil Goldman
  383. >Apple Computer
  384.  
  385. How about in cases of applications(like Copy2Mac or Disk Express) that
  386. don't always work like they are supposed to because "there are files
  387. that are open or busy on this disk" since the finder will try to read
  388. any disk you insert before your disk utility gets a chance to get its
  389. hands on it.
  390.  
  391. Or if you try to change the Finder(menus, icons...) with ResEdit, with
  392. MF, you can't.
  393.  
  394. I think that if its not too hard, then maybe you should put in the
  395. option to quit.  I know a lot of people who would love to be able to
  396. quit MF, add or delete fonts, or DA's without having to reboot.  You're
  397. right Phil, it shouldn't be that big a deal to reboot, but I, like many
  398. other people, sometimes can't do that(like when I have my harddisk
  399. published via TOPS and there are others using my volume).  But the
  400. emphasis is on "if its not too hard"(meaning: as long as it doesn't make
  401. the MultiFinder file much bigger).
  402. -- 
  403. Mahboud Zabetian                buzz@phoenix.princeton.edu
  404. 183 Little Hall                     (609) 520-1271
  405. Princeton University, Princeton, NJ 08544        (609) 734-7760
  406. ****** Anyone need a soon-to-graduate hardware/software engineer? ********
  407.  
  408.  
  409. ------------------------------
  410.  
  411. From: kuntz@imag.UUCP (Gilles Kuntz)
  412. Subject: Additional Serial Ports for MAC II
  413. Date: 24 Mar 88 18:08:52 GMT
  414. Organization: IMAG, University of Grenoble, France
  415.  
  416. The two standard serial ports of MAC II are not enough to control some
  417. devices such as videoplayers, videotapes... Thus, I am looking for a
  418. NUBUS card having 2 or 4 additional serial ports (RS-232 or RS-422).
  419.  
  420. Do you know somebody who sells such a card, including its driver
  421. (hardware and software)?
  422.  
  423. In France, we can find a card, made by AST Research, Inc.
  424. Irvine,Ca.,named ICP (MILWAUKEE COMMUNICATIONS PROCESSOR), without any
  425. software. Do you have some experience in using this card. In such a
  426. case, could you tell me please how can I use it, or send me the
  427. corresponding driver?
  428.  
  429. Thank you for sending me your answer via "mail."
  430. -- 
  431. Gilles KUNTZ            kuntz@imag.imag.fr          kuntz@imag.UUCP
  432. Laboratoire ARTEMIS                       {uunet.uu.netImcvax}!imag!kuntz
  433. BP 53X
  434. F-38041 GRENOBLE Cedex
  435.  
  436.  
  437. ------------------------------
  438.  
  439. From: mark@odin.ucsd.edu (mark anderson)
  440. Subject: Re: Additional Serial Ports for MAC II
  441. Date: 27 Mar 88 04:45:37 GMT
  442. Organization: Palomar Software, Inc.
  443.  
  444. I have been writing a driver for just such a board. It has four
  445. additional standard serial ports (RS-422) and a builtin modem.  The
  446. driver provides the standard Macintosh OS serial driver  interface to
  447. the board. For more information contact:
  448.  
  449.     John Metzger
  450.     Tara Systems Company
  451.     912 Santa Hidalga
  452.     Solana Beach, CA 92075
  453.     (619) 481-7109
  454.  
  455.                     Mark Anderson
  456.  
  457.  
  458. ------------------------------
  459.  
  460. From: jmunkki@santra.UUCP (Juri Munkki)
  461. Subject: Proposal for enhancements to the Macintosh System (Repost!)
  462. Date: 25 Mar 88 12:47:02 GMT
  463. Organization: Helsinki University of Technology, Finland
  464.  
  465. This is a repost of an article I posted a few weeks ago. It appears not
  466. to have reached some sites, so I'm crossposting to several groups this
  467. time.
  468.  
  469. ------------
  470.  
  471. The following file is a proposal for an enhancement to the Macintosh OS.
  472. Please tell me what you think about it.
  473.  
  474. Remember that this is nothing official and that it has almost nothing to
  475. do with Apple Computer (unless they get interested, which is what I
  476. hope).
  477.  
  478. I am not an expert on either hyphenation or spelling checkers, but since
  479. no one else has done anything to create a standard interface, I decided
  480. to write preliminary specification for a small addition to the system
  481. file.
  482.  
  483.     Juri Munkki
  484.     Helsinki University of Technology Computing Centre
  485.     Otakaari 1, Y250A
  486.     02150 Espoo
  487.  
  488.     jmunkki@santra.hut.fi
  489.     jmunkki@fingate.bitnet
  490.  
  491. ------------
  492.  
  493.  
  494. Proposal for a New Macintosh System Service
  495.  
  496. Introduction
  497.  
  498. English words tend to be short and hyphenation is not usually 
  499. necessary. Most languages are not as fortunate. The average length of 
  500. Finnish, Swedish and French words is so long that even single-column 
  501. text must often be hyphenated.
  502.  
  503. Modern word processing applications always have a spelling checker  and
  504. automatic hyphenation. These functions are usually adequate only  as
  505. long as the language being used is English. The Macintosh system 
  506. already provides a set of very useful routines for international 
  507. localization of applications, but there is no standard way to  localize
  508. an application to use foreign hyphenation and proofreading.
  509.  
  510. The traditional solution has been either to rewrite part of the 
  511. application or to write a general purpose program that works on  files.
  512. Both methods require new work to be done every time a new  version of
  513. the word processor or desktop publishing program is  released. For this
  514. reason, products are released internationally  months after the program
  515. is released in the USA.
  516.  
  517. This is a proposal to add a new service to the Macintosh operating 
  518. system. The system would provide an interface between any application 
  519. and third party hyphenation modules and spelling checkers. The end- user
  520. will not be aware of any changes in the system until he/she  copies a
  521. special program into the system folder. The American user  could choose
  522. between several spelling checkers and change his/her  mind later on, if
  523. a better product becomes available.
  524.  
  525. The proposed interface goes beyond simple localization. It allows  true
  526. multilingual word processing. A single document can combine  several
  527. languages. Manuals and school-books are good examples of such 
  528. documents.
  529.  
  530. Implementation
  531.  
  532. The interface to the new routines could be added either to the script 
  533. manager or the international utilities package. The interface would 
  534. receive parameters from a program and pass them on to the appropriate 
  535. code resource. Every hyphenation program or spelling checker should 
  536. have a unique ID and name so that any number of them can be used 
  537. simultaneously. The application should be able to request a certain 
  538. resource or ask for the default resource.
  539.  
  540. The code that actually does the work should be written and sold by 
  541. third parties. Creating a hyphenation routine should be no harder  than
  542. writing a new desk accessory. A single entry point receives  parameters
  543. and returns a result to the interface program.
  544.  
  545. If a function call is not available in the program, a special error 
  546. message asks the interface to try to satisfy the request. If new 
  547. functions are added to system routines, but an old hyphenation  program
  548. is used, the interface still returns legal results.
  549.  
  550. Special exception files and dictionaries are managed by the  hyphenation
  551. program. The hyphenation program should come with an  application that
  552. converts between the custom dictionary structure and  a standard text
  553. file dictionary so that user dictionaries can be  exchanged between
  554. programs.
  555.  
  556.  
  557.  
  558. Interfaces, Hyphenation:
  559.  
  560. Function LoadHyphen(doLoad: boolean; theRAM: longint;
  561.         theProgram: progId) : OSErr;
  562.  
  563. This function tries to load a hyphenation routine into the  application
  564. heap. If it will take more than TheRAM amount of heap  space to load the
  565. routine, an error is returned. There should be a  suggested minimum for
  566. "TheRam". If doLoad is FALSE, the space used by  the routines is
  567. returned to the heap.
  568.  
  569. Function HyphWord(textStart: ptr; textLength: longint;
  570.         wordStart: ptr; wordLength, beforeChar: longint;
  571.         Hyphens: HyphListPtr; theProgram: progId) : OSErr;
  572.  
  573. This routine hyphenates a single word or part of the word. TextStart 
  574. specifies the beginning of readable text. TextLength is the length of 
  575. the readable text. WordStart points to the word to be hyphenated. 
  576. Wordstart should be greater than or equal to textStart. WordLength is 
  577. the length of the word to hyphenate. WordStart+wordLength should be 
  578. less than or equal to textStart+textLength. BeforeChar specifies the 
  579. last possible position for the hyphen. BeforeChar is an offset from 
  580. wordStart.
  581.  
  582. Hyphens is a pointer to an array of integers. The array should be at 
  583. least 32 integers long and the first item should contain the maximum 
  584. size of the array. Legal hyphen positions are stored in this array.  The
  585. actual number of hyphens is returned in the first item. Following  items
  586. are offsets of possible hyphens from the beginning of the word.
  587.  
  588. If "polyethylene" was hyphenated as "poly-ethyl-ene", the array would 
  589. look like this: { 2, 4, 10 }. The choice of adding soft hyphens or 
  590. using a custom structure for hyphens is left for the programmer.
  591.  
  592. Function HyphText(textStart: ptr; textLength: longint;
  593.         Hyphens: HyphListPtr, var lastChar: longint;
  594.         theProgram: progId) : OSErr;
  595.  
  596. This routine hyphenates long portions of text. The hyphens are  returned
  597. in the array pointed by HyphListPtr. Hyphenation starts from  offset
  598. lastChar. If more hyphens are found that can be stored in the  array,
  599. lastChar will be less than textLength when the function  returns. The
  600. application should then call this routine again after  processing the
  601. hyphens.
  602.  
  603. Function HyphDialog(defaults: Handle; theProgram: progId) : OSErr;
  604.  
  605. The hyphenation program should show a dialog box and allow the user  to
  606. change the hyphenation settings. The dialog should be similar in 
  607. purpose to the page setup dialog. The handle should contain some sort 
  608. of signature so that the hyphenation program can recognize it as its 
  609. own.
  610.  
  611. Function UseHyph(defaults: Handle; theProgram: progId) : OSErr;
  612.  
  613. The hyphenation routine tries to use the settings in defaults. The 
  614. information in defaults is always validated so that if the program 
  615. calls this routine with an empty handle, it will get the default 
  616. settings in return. These settings can then be used when the file is 
  617. opened later on.
  618.  
  619. Interfaces, Spelling Checker:
  620.  
  621. Function LoadSpell(doLoad: boolean; theRAM: longint;
  622.         theProgram: progId) : OSErr;
  623.  
  624. This function tries to load a spelling checker routine into the 
  625. application heap. If it will take more than TheRAM amount of heap  space
  626. to load the routine, an error should be returned. The minimum  value for
  627. TheRAM should be sufficient to load part of the code into  memory. If
  628. doLoad is FALSE, the space used by the routine is returned  to the heap.
  629.  
  630. Function CheckText(theText, fixes: Handle;
  631.         theProgram: progId) : OSErr;
  632.  
  633. This routine checks the spelling of long portions of text. For every 
  634. misspelled word there is a record in the fixes handle. The record 
  635. contains the offset to the next record, the position and length of  the
  636. error in the original text and the correct spelling. With this 
  637. information, the calling application can fix the spelling while 
  638. retaining all the formatting information of the text. This routine  will
  639. allow the user to add and delete words from custom dictionaries.
  640.  
  641. Function CheckWord(textStart: ptr; textLength: longint;
  642.         wordStart: ptr; wordLength: longint;
  643.         theProgram: progId) : OSErr;
  644.  
  645. This routine checks the spelling of a word. If the word is suspected  to
  646. be incorrectly spelled, spellError is returned. This routine  should be
  647. fast, since it is most probably used for interactive  checking. The
  648. calling application might beep or alert the user in  some way. Slow
  649. spelling checkers should do nothing and return noErr.
  650.  
  651. Function FixSpelling(textStart: Ptr; textLength: longint;
  652.     wordStart: Ptr; wordLength: longint; fix: Handle;
  653.     theProgram: progId) : OSErr;
  654.  
  655. This routine corrects the spelling of a word. Fix will return the 
  656. correct spelling. This routine will allow the user to add and delete 
  657. words from custom dictionaries. The application should call this 
  658. routine only if the user wants assistance.
  659.  
  660. Function SpellDialog(defaults: Handle; theProgram: progId) : OSErr;
  661.  
  662. The spelling checker should show a dialog box allowing the user to  open
  663. custom dictionaries and change settings. The handle should  contain a
  664. signature so that the hyphenation program can recognize it  as its own.
  665.  
  666. Function UseSpell(defaults: Handle; theProgram: progId) : OSErr;
  667.  
  668. The application can store spelling settings in a file. These settings 
  669. can then be used when the file is opened later on. The handle is a  good
  670. place to store the names of opened custom dictionaries.
  671.  
  672.  
  673. ------------------------------
  674.  
  675. From: hsg@duke.cs.duke.edu (Henry Greenside)
  676. Subject: DiskTools Plus comments
  677. Date: 28 Mar 88 04:57:36 GMT
  678. Organization: Duke University CS Dept.; Durham, NC
  679.  
  680. I recently purchased an upgrade of Battery Pack DA's to DiskTools Plus,
  681. mainly to get a hold of the Finder replacement "DiskTools II" which has
  682. received a lot of praise from different Mac magazines.
  683.  
  684. Unfortunately, the latest version of this DA as of 3/27/88 is
  685. MulfiFinder incompatible, which greatly reduced its usefulness (at least
  686. for me). The launch facility, which allows you to launch any document or
  687. group of documents or application under the normal finder, doesn't work
  688. at all under MultiFinder.
  689.  
  690. Other comments are that the search by date option only allows searches
  691. before, after, or on a given date but not between two given dates, which
  692. often leads to excessively large matches. There is a "Trash" option that
  693. allows you to delete files, but the default (carried out by hitting
  694. Return) is to wipe out files, a very dangerous way to do things.
  695.  
  696. The upgrades to the other DA's that come with the package (e.g., the
  697. Calendar, Scientific Calculator, etc.) are minimal improvements over
  698. what already existed in the BatteryPack collection.
  699.  
  700. Conclusion: if you like to transfer to different documents or
  701. applications under MultiFinder, this DA needs at least one more upgrade
  702. before being really useful.
  703.  
  704.  
  705. ------------------------------
  706.  
  707. From: soe@ames.arpa (Brad Soe)
  708. Subject: Help List Manager
  709. Date: 25 Mar 88 18:48:34 GMT
  710. Organization: NASA Ames Research Center, Moffett Field, CA
  711.  
  712.  
  713. I am trying to use the listmanager to display a simple window in  a
  714. dialog box using LSC v2.13. The window is a scrollable list  with a
  715. single column. I seem to have a problem displaying non  selected (cells
  716. not highlighted) when I start up the list manager.  Everytime I call
  717. LActivate (during an activate event),  only the cells that have been
  718. selected as highlighted see to show  up in the window (they show up
  719. highlighted) and all other cells  don't appear at all. When LUpdate is
  720. called (during an update event)  the unselected cells don't seem to be
  721. getting updated.
  722.  
  723. When I pick a cell with the mouse, the cell clicked gets highlighted,
  724. but the data in the cell is not displayed. Is there something that I
  725. need to know. How can I display a list showing all the cells, with only 
  726. one cell highlighted at a time. 
  727.  
  728.  
  729.                     Brad Soe 
  730.                     internet : soe@ames.arc.nasa.gov
  731.                     NASA Ames Research Ctr.
  732.                     Mail Stop 233-18
  733.                     Moffett Field, CA 94035
  734.                     (415) 694-4866
  735.  
  736.  
  737. ------------------------------
  738.  
  739. From: gillies@uiucdcsp.cs.uiuc.edu
  740. Subject: Re: Polygon question
  741. Date: 25 Mar 88 07:36:00 GMT
  742.  
  743.  
  744. Do you really need the area of your polygon in pixels?  There is a very
  745. efficient way to determine the area of a polygon numerically. You take
  746. one point and use it to break the polygon into triangles. There is a
  747. linear-algebra formula that gives the area of a triangle given two
  748. vectors.  The area is positive if you take the vectors in clockwise
  749. order, and the area is negative if you take them in counterclockwise
  750. order.  I think the formula is the magnitude of the cross product ( | A
  751. x B | / 2 = |A||B|sin(theta) / 2), but I'm extremely rusty at linear
  752. algebra.  
  753.  
  754. You just add up all the (positive/negative) areas to get the total area.
  755.  
  756. You can convince yourself that this works with a pencil and paper --
  757. draw a polygon, pick one point, draw a line from it to every other
  758. point.  Now start at that point and go clockwise around the polygon. For
  759. each two vectors to points on the polygon, add the area of the resulting
  760. triangle if the vectors are in clockwise order, or subtract the area if
  761. they're in counter-clockwise order.  You should end up with an area that
  762. fits exactly within your polygon.
  763.  
  764. Don Gillies {ihnp4!uiucdcs!gillies} U of Illinois
  765.             {gillies@p.cs.uiuc.edu}
  766.  
  767. P.S. You take the cross product in 3 dimensions, the x and y components
  768. are always zero, and you divide the z dimension by two to get the area
  769. of the triangle.
  770.  
  771. ------------------------------
  772.  
  773. End of Usenet Mac Digest
  774. ************************
  775.  
  776. -------
  777.